import Button from "components/Base/Button";
import Icon from "components/Base/Icon";
import DataTable from "components/Base/DataTable";
import Image from "components/Base/Image";

export default (self) => [

  {
    title: '商品图片',
    name: 'pic',
    tableItem: {
      render: (text, record) => {
        return <Image src={text} style={{width:50, height:50}}/>
      }
    },
  },

  {
    title: '商品名称',
    name: 'name',
    tableItem: {
    },
  },

  {
    title: '规格',
    name: 'itemName',
    tableItem: {
    },
    dict: self.getAll("goodType").dict,
  },

  {
    title: "单价元",
    name: 'price',
    tableItem: {
    },
  },

  {
    title: '数量',
    name: 'count',
    tableItem: {},
  },
]
